const Layout = () => import("../../layout/index.vue");
const User = () => import("../../views/user/index.vue");
const Activity = () => import("../../views/activity/index.vue");
const Commodity = () => import("../../views/commodity/index.vue");
const Order = () => import("../../views/order/index.vue");
const Logistics = () => import("../../views/logistics/index.vue");

const shopRoutes = [
  {
    path: "/",
    component: Layout,
    children: [
      {
        path: "/activity",
        name: "activity",
        component: Activity,
        meta: {
          icon: "SmileOutlined",
          title: "活动管理",
        },
      },
      {
        path: "/user",
        name: "user",
        component: User,
        meta: {
          icon: "UserOutlined",
          title: "用户管理",
        },
      },
      {
        path: "/commodity",
        name: "commodity",
        component: Commodity,
        meta: {
          title: "商品管理",
          icon: "ShoppingOutlined",
        },
      },
      {
        path: "/order",
        name: "order",
        component: Order,
        meta: {
          title: "订单管理",
          icon: "ReconciliationOutlined",
        },
      },
      {
        path: "/logistics",
        name: "logistics",
        component: Logistics,
        meta: {
          title: "物流管理",
          icon: "EnvironmentOutlined",
        },
      },
    ],
  },
];

export default shopRoutes;